<?php
	header('Content-Type:application/json');
	@$uemail = $_REQUEST['email'] or die('email required');
	@$upwd = $_REQUEST['upwd'] or die('password required');
	require('init.php');

	$sql = "SELECT uid FROM yx_user WHERE uemail = '$uemail' and upwd = '$upwd'";
	$result = mysqli_query($conn,$sql);
	$row = mysqli_fetch_row($result);
	if($row === null) {
		echo "no";
	}else {
		echo "yes";
	}